var mongoose = require('mongoose');
var schema = mongoose.Schema;

var Qrcode = function(){
    var QrcodeSchema = new schema({
        qid : { type: Number, index: true },
        url : { type: String },
        msg : { type: String, index: true },
        time : { type: Number, default: 0 },
        ticket : { type: String }
    });

    return mongoose.model('Qrcode',QrcodeSchema, 'Qrcode');
};

module.exports = Qrcode;
